# -*- coding:utf-8 -*-
"""
Python 3.7
Author：刘爽、何若溥
Time：2022/08/26
"""

from common.fileUtil import getProperties, getDingAccessToken
from common.path import CONFIGPATH
from reportSuite.cwReport import cwReport


if __name__ == '__main__':
    # 获取配置信息
    db = getProperties(CONFIGPATH)
    # 钉钉发送消息 header
    header = {'Content-Type': 'application/json;charset=utf-8'}
    # 发送云仓日报
    cwReport(db["cw_project_id"], getDingAccessToken(db["ding_url"], db["cw_access_token"]), header)
